package ru.reinvent.perspectiva.fragments;

import com.actionbarsherlock.app.SherlockFragment;

import ru.reinvent.perspectiva.R;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;
import android.webkit.WebView;

public class AboutLombardFragment extends SherlockFragment
	{

	protected WebView wv;
	
	public AboutLombardFragment() {;}
	
	@Override
	public View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState) 
		{
		if (wv != null) 
			{
			if (wv.getParent() != null) ((ViewGroup) wv.getParent()).removeView(wv);
			return wv;
			}

		wv = new WebView(getActivity());
		wv.setLayoutParams(new ViewGroup.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
		wv.setBackgroundColor(getActivity().getResources().getColor(R.color.black));
		wv.loadUrl("file:///android_asset/about_lombard/about_lombard.html");
		
		return wv;
		}

	}
